﻿using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using Sqo;

namespace Ivvy_Silverlight
{
    /// [Generated Jan 30 2011]    
    public partial class i_Entry : ISqoDataObject
    {

        #region "private fields"

        private int _Entry_ID;
        private string _Entry_Name;
        private bool _Rollover;
        private bool _Disabled;
        private string _Annotation;
        private string _GUID;

        #endregion

        #region "public properties"

        public int Entry_ID
        {
            get { return _Entry_ID; }
            set { _Entry_ID = value; }
        }
        public string Entry_Name
        {
            get { return _Entry_Name; }
            set { _Entry_Name = value; }
        }
        public bool Rollover
        {
            get { return _Rollover; }
            set { _Rollover = value; }
        }
        public bool Disabled
        {
            get { return _Disabled; }
            set { _Disabled = value; }
        }
        public string Annotation
        {
            get { return _Annotation; }
            set { _Annotation = value; }
        }
        public string GUID
        {
            get { return _GUID; }
            set { _GUID = value; }
        }

        #endregion

        #region "ISqoDataObject"
        object ISqoDataObject.GetValue(System.Reflection.FieldInfo field) { return field.GetValue(this); }
        void ISqoDataObject.SetValue(System.Reflection.FieldInfo field, object value) { field.SetValue(this, value); }
        int ISqoDataObject.OID { get { return Entry_ID; } set { } }
        #endregion
        
        #region "MAPPER"
        public static Ivvy_Silverlight.i_Entry Convert(i7SR.Entry od_Entry)
        {
            return new Ivvy_Silverlight.i_Entry()
            {

                Entry_ID = Utils.IsNull(od_Entry.Entry_ID),
                Entry_Name = Utils.IsNull(od_Entry.Entry1),
                Rollover = Utils.IsNull(od_Entry.Rollover),
                Disabled = Utils.IsNull(od_Entry.Disabled),
                Annotation = Utils.IsNull(od_Entry.Annotation),
                GUID = Utils.IsNull(od_Entry.GUID),

            };
        }
        #endregion


        #region "REVERSEMAPPER"
        public static Ivvy_Silverlight.i7SR.Entry ReverseConvert(i_Entry od_Entry)
        {
            return new Ivvy_Silverlight.i7SR.Entry()
            {

                Entry_ID = Utils.ReverseIsNull(od_Entry.Entry_ID).Value,
                Entry1 = Utils.ReverseIsNull(od_Entry.Entry_Name),
                Rollover = Utils.ReverseIsNull(od_Entry.Rollover),
                Disabled = Utils.ReverseIsNull(od_Entry.Disabled),
                Annotation = Utils.ReverseIsNull(od_Entry.Annotation),
                GUID = Utils.ReverseIsNull(od_Entry.GUID),

            };
        }
        #endregion
    }//public partial class i_Entry : ISqoDataObject

}//namespace EDMD